<?php
use Illuminate\Support\Facades\DB;
$userdata =  DB::table('parts')->count();
?>
<div class="user-count">
  <span class="label">配件数量</span>
  <span class="count"><?php echo $userdata; ?></span>
</div>
<style>
.user-count {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    height:100px; 
    margin-bottom: 30px;
}
.label {
  
}
.count {

}
     
</style>


